---
layout: "default"
title: "PlaygroundQuickLook"
description: "Swift documentation for 'PlaygroundQuickLook': The sum of types that can be used as a quick look representation."
keywords: "PlaygroundQuickLook,enum,swift,documentation"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">enum PlaygroundQuickLook</code></div>

<div class="discussion comment">
    <p>The sum of types that can be used as a quick look representation.</p>
</div>

<table class="standard">



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>

<h3 id="cases">Cases</h3>
<div class="declaration" id="case-Text">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Text">case Text(String)</a>
<div class="comment collapse" id="comment-case-Text"><div class="p">
    <p>Plain text.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Int">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Int">case Int(Int64)</a>
<div class="comment collapse" id="comment-case-Int"><div class="p">
    <p>An integer numeric value.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-UInt">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-UInt">case UInt(UInt64)</a>
<div class="comment collapse" id="comment-case-UInt"><div class="p">
    <p>An unsigned integer numeric value.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Float">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Float">case Float(Float32)</a>
<div class="comment collapse" id="comment-case-Float"><div class="p">
    <p>A single precision floating-point numeric value.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Double">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Double">case Double(Float64)</a>
<div class="comment collapse" id="comment-case-Double"><div class="p">
    <p>A double precision floating-point numeric value.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Image">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Image">case Image(Any)</a>
<div class="comment collapse" id="comment-case-Image"><div class="p">
    <p>An image.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Sound">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Sound">case Sound(Any)</a>
<div class="comment collapse" id="comment-case-Sound"><div class="p">
    <p>A sound.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Color">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Color">case Color(Any)</a>
<div class="comment collapse" id="comment-case-Color"><div class="p">
    <p>A color.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-BezierPath">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-BezierPath">case BezierPath(Any)</a>
<div class="comment collapse" id="comment-case-BezierPath"><div class="p">
    <p>A bezier path.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-AttributedString">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-AttributedString">case AttributedString(Any)</a>
<div class="comment collapse" id="comment-case-AttributedString"><div class="p">
    <p>An attributed string.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Rectangle">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Rectangle">case Rectangle(Float64, Float64, Float64, Float64)</a>
<div class="comment collapse" id="comment-case-Rectangle"><div class="p">
    <p>A rectangle.</p>

<p>Uses explicit coordinates to avoid coupling a particular Cocoa type.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Point">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Point">case Point(Float64, Float64)</a>
<div class="comment collapse" id="comment-case-Point"><div class="p">
    <p>A point.</p>

<p>Uses explicit coordinates to avoid coupling a particular Cocoa type.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Size">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Size">case Size(Float64, Float64)</a>
<div class="comment collapse" id="comment-case-Size"><div class="p">
    <p>A size.</p>

<p>Uses explicit coordinates to avoid coupling a particular Cocoa type.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Logical">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Logical">case Logical(Bool)</a>
<div class="comment collapse" id="comment-case-Logical"><div class="p">
    <p>A logical value.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Range">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Range">case Range(Int64, Int64)</a>
<div class="comment collapse" id="comment-case-Range"><div class="p">
    <p>A range.</p>

<p>Uses explicit values to avoid coupling a particular Cocoa type.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-View">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-View">case View(Any)</a>
<div class="comment collapse" id="comment-case-View"><div class="p">
    <p>A GUI view.</p>

<p>Uses an Any to avoid coupling a particular Cocoa type.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-Sprite">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-Sprite">case Sprite(Any)</a>
<div class="comment collapse" id="comment-case-Sprite"><div class="p">
    <p>A graphical sprite.</p>

<p>Uses an Any to avoid coupling a particular Cocoa type.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>
<div class="declaration" id="case-URL">
<a class="toggle-link" data-toggle="collapse" href="#comment-case-URL">case URL(String)</a>
<div class="comment collapse" id="comment-case-URL"><div class="p">
    <p>A Uniform Resource Locator.</p>

    <h4>Declaration</h4>    
    <code class="language-swift"></code>
</div></div>
</div>

<h3>Initializers</h3>
<div class="declaration" id="init-reflecting_">
<a class="toggle-link" data-toggle="collapse" href="#comment-init-reflecting_">init(<wbr>reflecting:)</a><div class="comment collapse" id="comment-init-reflecting_"><div class="p">
    <p>Initialize for the given <code>subject</code>.</p>

<p>If the dynamic type of <code>subject</code> conforms to
<code>CustomPlaygroundQuickLookable</code>, returns the result of calling
its <code>customPlaygroundQuickLook</code> method.  Otherwise, returns
a <code>PlaygroundQuickLook</code> synthesized for <code>subject</code> by the
language.  Note that in some cases the result may be
<code>.Text(String(reflecting: subject))</code>.</p>

<p><strong>Note:</strong> If the dynamic type of <code>subject</code> has value semantics,
  subsequent mutations of <code>subject</code> will not observable in
  <code>Mirror</code>.  In general, though, the observability of such
mutations is unspecified.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">init(reflecting subject: Any)</code>

    </div></div>
</div>







